﻿using System;
using System.ComponentModel;

namespace Flagwind.Security
{
	/// <summary>
	/// 表示安全凭证被作废的原因。
	/// </summary>
	[Serializable]
	public enum CredentialInvalidatedReason
	{
		/// <summary>通过调用注销方法而被作废。</summary>
		[Description("${Text.CredentialInvalidReason.Unregister}")]
		Unregister,

		/// <summary>凭证所属用户在别处登录而被踢下线。</summary>
		[Description("${Text.CredentialInvalidReason.Rejected}")]
		Rejected,

		/// <summary>凭证过期而被作废。</summary>
		[Description("${Text.CredentialInvalidReason.Expired}")]
		Expired,

		/// <summary>其他原因。</summary>
		[Description("${Text.CredentialInvalidReason.Other}")]
		Other,
	}
}